package com.dingup.api.enums.log;

/**
 * Created by wancheng on 2018/8/28.
 */
public enum LessonInfoLogEnum {

    ID("id"),

    LESSONNAME("课程名称"),

    LESSONCAMPUS("校区"),

    EXAM("考试"),

    LESSONCLASSHOURS("总课时"),

    PRICE("价格"),


    TYPE("类型");

    public static String getDescription(String name){
        String res = null;
        for (LessonInfoLogEnum e:LessonInfoLogEnum.values()) {
            if (e.name().toLowerCase().equals(name.toLowerCase())){
                res = e.description;
                break;
            }
        }
        return  res;
    }

    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    LessonInfoLogEnum(String description) {
        this.description = description;
    }
}
